<?php



if ($Dmdform['Dmdform']['is_new_company']==0):
    $table='Company';
    $prefix=null;
else:
    $table='Dmdform';
    $prefix='company_';
endif;  ?>

<?php   
    if (isset($Dmdform[$table][$prefix.'title'])):
?>
<?php if (($Dmdform['Dmdform']['is_new_company']==0 && $Dmdform['Dmdform']['company_id']!=0) || ($Dmdform['Dmdform']['is_new_company']==1)  ):  ?>
<table class="showFields">
    <tr>
        <th><?php __('Title')  ?></th>
        <td><?php echo $Dmdform[$table][$prefix.'title'];  ?></td>
    </tr>
    <tr>
        <th><?php __('Code')  ?></th>
        <td><?php echo $Dmdform[$table][$prefix.'code'];  ?></td>
    </tr>
    <tr>
        <th><?php __('Site')  ?></th>
        <td><?php echo $Dmdform[$table][$prefix.'site'];  ?></td>
    </tr>
    <tr>
        <th><?php __('Department')  ?></th>
        <td><?php echo $Dmdform[$table][$prefix.'department'];  ?></td>
    </tr>
    <tr>
        <th><?php __('Activity')  ?></th>
        <td><?php echo $Dmdform[$table][$prefix.'activity'];  ?></td>
    </tr>
    <tr>
        <th><?php __('Country')  ?></th>
		<?php if($Dmdform[$table][$prefix.'country_id']>0): ?>
        <td><?php echo $countries[$Dmdform[$table][$prefix.'country_id']];  ?></td> 
		<?php else: 
		echo '<td></td>';
		endif;
		 ?>
    </tr>   
</table>
<?php endif  ?>
<?php else:  ?>
<div class="informDivError">
    <?php __('No Data !')  ?>
</div>    
<?php endif;  ?>